package com.example.lib;

public class RabbitWork {

    public static void main(String[] args) {
        int result = rabbitGo(12);
        log("Rabbit: " + result);
    }

    private static int rabbitGo(int month) {
        if (month == 0 || month == 1) {
            return 1;
        }
        return rabbitGo(month - 2) + rabbitGo(month - 1);
    }

    private static void log(String str) {
        System.out.print(str + "\n");
    }
}
